{extend name="default/template/base_index" /}

{block name="area_header"}

{/block}

{block name="area_body"}
{include file="default/Widget/topbar" /}
<div class="admin-main container-fluid">
    {include file="default/Widget/left" /}
    <div class="admin-main-content">
        {include file="default/Widget/breadcrumb" /}
        <div class="table-responsive well">
            <!-- 过滤\查询按钮 -->
            <div class="filter-controls">
                <form action="{:url('Repair/orderDelegate')}" class="memberForm form-inline" method="post">
                    <div class="form-group">
                        <label class="control-label">用户昵称</label>
                        <div class="input-group">
                            <input class="form-control" value="{$nickname}" type="text" name="nickname"
                                   placeholder="请输入用户昵称"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label">手机号</label>
                        <div class="input-group">
                            <input class="form-control" value="{$mobile}" type="text" name="mobile"
                                   placeholder="请输入用户手机号"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label">&nbsp;</label>
                        <div class="input-group">
                            <button type="submit" class="btn btn-primary btn-sm"><i class="fa fa-search"></i>查询</button>
                        </div>
                    </div>
                </form>
            </div>
            <!-- 操作按钮 -->

            <table class="table table-striped table table-hover  table-condensed">
                <thead>
                <tr>
                    <th style="width:40px;">
                        <input type="checkbox" class="selectall" onclick="myUtils.selectall(this,'.selectitem');"/>
                    </th>
                    <th>
                        用户唯一ID
                    </th>
                    <th>
                        头像/昵称
                    </th>
                    <th>
                        登录用户名
                    </th>
                    <th>
                        手机号
                    </th>
                    <th>
                        注册时间
                    </th>
                    <th>
                        状态
                    </th>
                    <th>
                        {:L('OPERATOR')}
                    </th>
                </tr>
                </thead>
                <tbody>
                {empty name="list"}
                <tr>
                    <td colspan="8" class="text-center">{:L('NO_DATA')}</td>
                </tr>
                {else/}
                {volist name="list" id="vo"}
                <tr>
                    <td>
                        <input type="checkbox" value="{$vo.id}" name="uids[]" class="selectitem"/></td>

                    <td>
                        {$vo.id}
                    </td>
                    <td>
                        <a href="{:url('Member/view',array('id'=>$vo['id']))}">
                            <img src="{:app\\src\\base\\helper\\ConfigHelper::getAvatarUrl($vo['id'],60)}"
                                 style="width: 40px;height:40px;border-radius: 50%"/>
                            {$vo.nickname|default='--'}
                        </a>

                    </td>
                    <td>{$vo.username}</td>
                    <td>{$vo.mobile}</td>
                    <td>{:date("Y-m-d H:i:s",$vo['reg_time'])}</td>

                    <td>{$vo.status|getStatus}</td>
                    <td>
                        <a href="{:url(CONTROLLER_NAME .'/orderDelegate',array('uid'=>$vo['id'],'id'=>$id))}" class="btn btn-primary btn-sm ajax-get" ><i class="fa fa-check"></i>委派</a>
                    </td>
                </tr>
                {/volist}
                {/empty}
                </tbody>
            </table>
            <div>{$show}</div>
        </div>
    </div>
    <!-- END admin-main-content -->
</div>
<!-- END admin-main-->
{/block}

{block name="area_footer"}

{/block}
